package com.lzlearn.controller;

import com.lzlearn.model.User;
import com.lzlearn.service.MyService;
import com.lzlearn.service.impl.MyServiceImpl;

public class MyController {
    private MyService myService;

    public MyService getMyService() {
        return myService;
    }

    public void setMyService(MyService myService) {
        this.myService = myService;
    }

    public MyController() {
        System.out.println("MyController被创建");
    }

    public User TestSpring(){
        User user = myService.selectUser();
        return user;
    }
}
